package com.bike.modules.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
    * 单车信息表
    */
@ApiModel(value="单车信息表")
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "bike_info")
public class Info implements Serializable {
    @TableId(value = "id", type = IdType.INPUT)
    @ApiModelProperty(value="")
    private Integer id;

    /**
     * 单车编码
     */
    @TableField(value = "bike_no")
    @ApiModelProperty(value="单车编码")
    private String bikeNo;

    /**
     * 单车名称
     */
    @TableField(value = "park_id")
    @ApiModelProperty(value="停车点id")
    private Integer parkId;

    /**
     * 单车照片
     */
    @TableField(value = "bile_image")
    @ApiModelProperty(value="单车照片")
    private String bileImage;

    /**
     * 停靠经度
     */
    @TableField(value = "stop_lng")
    @ApiModelProperty(value="停靠经度")
    private BigDecimal stopLng;

    /**
     * 停靠纬度
     */
    @TableField(value = "stop_lat")
    @ApiModelProperty(value="停靠纬度")
    private BigDecimal stopLat;

    /**
     * 使用次数
     */
    @TableField(value = "usage_count")
    @ApiModelProperty(value="使用次数")
    private Integer usageCount;

    /**
     * 使用时间（分钟）
     */
    @TableField(value = "usage_time")
    @ApiModelProperty(value="使用时间（分钟）")
    private Integer usageTime;

    /**
     * 使用里程（km）
     */
    @TableField(value = "usage_mileage")
    @ApiModelProperty(value="使用里程（km）")
    private BigDecimal usageMileage;

    /**
     * 0：禁用，1：停靠中，2：使用中， 3：已故障
     */
    @TableField(value = "`status`")
    @ApiModelProperty(value="0：禁用，1：停靠中，2：使用中， 3：已故障")
    private String status;

    /**
     * 备注
     */
    @TableField(value = "remarks")
    @ApiModelProperty(value="备注")
    private String remarks;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    @ApiModelProperty(value="创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm",timezone = "GMT+8")
    private Date createTime;

    /**
     * 最后一次更新时间
     */
    @TableField(value = "update_time")
    @ApiModelProperty(value="最后一次更新时间")
    private Date updateTime;

    /**
     * 删除标记
     */
    @TableField(value = "del_flag")
    @ApiModelProperty(value="删除标记")
    private Boolean delFlag;

    private static final long serialVersionUID = 1L;

    public static final String COL_ID = "id";

    public static final String COL_BIKE_NO = "bike_no";

    public static final String COL_BIKE_NAME = "bike_name";

    public static final String COL_BILE_IMAGE = "bile_image";

    public static final String COL_STOP_LNG = "stop_lng";

    public static final String COL_STOP_LAT = "stop_lat";

    public static final String COL_USAGE_COUNT = "usage_count";

    public static final String COL_USAGE_TIME = "usage_time";

    public static final String COL_USAGE_MILEAGE = "usage_mileage";

    public static final String COL_STATUS = "status";

    public static final String COL_REMARKS = "remarks";

    public static final String COL_CREATE_TIME = "create_time";

    public static final String COL_UPDATE_TIME = "update_time";

    public static final String COL_DEL_FLAG = "del_flag";
}